package com.voltmao.persistent.model;

import org.mybatis.annotation.Field;
import org.mybatis.annotation.Table;

import java.io.Serializable;

/**
 * admin_role
 */
@Table(name = "admin_role")
public class AdminRole implements Serializable {
    /**
     * 主键
     */
    public static final String DATAID = "dataId";

    /**
     * 主键
     */
    @Field(columnName = "data_id", jdbcType = "VARCHAR", javaType = String.class, length = 36, scale = 0)
    private String dataId;

    /**
     * 角色名称
     */
    public static final String ROLENAME = "roleName";

    /**
     * 角色名称
     */
    @Field(columnName = "role_name", jdbcType = "VARCHAR", javaType = String.class, length = 255, scale = 0)
    private String roleName;

    private static final long serialVersionUID = 1L;

    /**
     * @return dataId
     * 主键
     */
    public String getDataId() {
        return dataId;
    }

    /**
     * @param dataId 主键
     */
    public void setDataId(String dataId) {
        this.dataId = dataId == null ? null : dataId.trim();
    }

    /**
     * @return roleName
     * 角色名称
     */
    public String getRoleName() {
        return roleName;
    }

    /**
     * @param roleName 角色名称
     */
    public void setRoleName(String roleName) {
        this.roleName = roleName == null ? null : roleName.trim();
    }
}